package mode.design_mode_03_proxy_dynamic;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * ***********************************************************
 *
 * @类名 : controller.design_mode_03_proxy_dynamic.类名
 * @DESCRIPTION : 这家伙太懒啥都没写
 * @AUTHOR :  一个风情万种的男子
 * @DATE : 2016/4/15
 * ***********************************************************
 */
public class MyHandlder implements InvocationHandler {

    private Subject subject = null;

    MyHandlder(Subject subject) {
        this.subject = subject;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        return method.invoke(this.subject, args);
    }
}
